package com.course.cdspringboot;

import com.course.cdspringboot.util.JwtUtil;

public class test {
    public static void main(String[] args) {
        String token = JwtUtil.generateToken("123456");
        String getUsernameFromToken = JwtUtil.getUsernameFromToken(token);
        boolean isExpired = JwtUtil.isTokenExpired(token);
        System.out.println(isExpired);
        System.out.println(token);
        System.out.println(getUsernameFromToken);
        System.out.println(JwtUtil.verifyToken(token));

    }
}
